﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using SnippetBox.Core.Data.Models;

namespace SnippetBox.Web.Models {
    public class SnippetIndexModel {
        public List<Snippet> LatestSnippets { get; set; }
        public List<Snippet> PopularSnippets { get; set; } // Combined score of views and stars.

        public SnippetIndexModel() { }
        
        public SnippetIndexModel(List<Snippet> latestSnippets, List<Snippet> popularSnippets) {
            LatestSnippets = latestSnippets;
            PopularSnippets = popularSnippets;
        }
    }
}